/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nc.solutions.rentacar.domain.order.impl;

import com.nc.solutions.rentacar.domain.car.ICar;
import com.nc.solutions.rentacar.domain.order.IOrder;
import com.nc.solutions.rentacar.domain.user.IUser;
import com.nc.solutions.rentacar.domain.Money.impl.Money;
import java.util.Date;

/**
 *
 * @author Andrey
 */
public class Order implements IOrder {

	private int id;
	private IUser user;
	private ICar car;
	private Money price;
	private String status;
	private Date dateFrom;
	private Date dateTo;

	public Order(int id){
		this.id = id;
	}
	@Override
	public int getId() {
		return id;
	}

	@Override
	public IUser getOwner() {
		return user;
	}

	@Override
	public void setOwner(IUser user) {
		this.user = user;
	}

	@Override
	public Money getPrice() {
		return price;
	}

	@Override
	public String getStatus() {
		return status;
	}

	@Override
	public void setStatus(String st) {
		this.status = st;
	}

	@Override
	public Date getDateFrom() {
		return dateFrom;
	}

	@Override
	public Date getDateTo() {
		return dateTo;
	}

	@Override
	public void setDateFrom(Date d) {
		this.dateFrom = d;
	}

	@Override
	public void setDateTo(Date d) {
		this.dateTo = d;
	}

	@Override
	public ICar getAuto() {
		return car;
	}

	@Override
	public void setAuto(ICar car) {
		this.car = car;
	}
}
